home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Full
/
Paragon Drive Backup 9
/
DB90_SE_x64.msi
/
Data1.cab
/
_A6E1CEA8F1C05C3393B01D863D53D6DF
/
dos.img
/
psr.bat
< prev
next >
Wrap
DOS Batch File
|
2008-05-28
|
2KB
|
56 lines
@echo off
:find_bc
for %%i in (C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z) do if exist "%%i:\psr_inst\psr\dos\common.zip" set BCLETTER=%%i:
if "%BCLETTER%"=="" goto out
mkdir %RAM%\dos
mkdir %RAM%\dos\nls
copy a:\ntfs4dos\nls\*.* %RAM%\dos\nls\*.* >nul
set TZ=GMT
:copy_common
if exist %BCLETTER%\psr_inst\psr\dos\common.zip a:\unzip32 -qq -o %BCLETTER%\psr_inst\psr\dos\common.zip -d %RAM%\dos >nul
if not exist %BCLETTER%\psr_inst\psr\dos\restart.log goto copy_utils
:copy_restart
set RESTART=/restart
copy %BCLETTER%\psr_inst\psr\dos\restart.log %RAM%\dos\restart.log >nul
del %BCLETTER%\psr_inst\psr\dos\restart.log >nul
if exist %RAM%\dos\start.exe goto copy_local
:copy_utils
if not exist %BCLETTER%\psr_inst\psr\dos\utils.zip goto copy_local
if exist %BCLETTER%\psr_inst\psr\dos\utils.zip a:\unzip32 -qq -o %BCLETTER%\psr_inst\psr\dos\utils.zip -d %RAM%\dos >nul
if exist %RAM%\dos\start.exe del %RAM%\dos\start.exe >nul
if "%RESTART%"=="" goto copy_local
if exist %RAM%\dos\menu.bat del %RAM%\dos\menu.bat >nul
if exist %RAM%\dos\dospm.exe ren %RAM%\dos\dospm.exe start.exe >nul
:copy_local
if exist %BCLETTER%\psr_inst\psr\dos\local.zip a:\unzip32 -qq -o %BCLETTER%\psr_inst\psr\dos\local.zip -d %RAM%\dos >nul
set TZ=
set BCLETTER=
call nd.bat -f C: X:
if "%LANG%"=="" set LANG=EN
SET PATH=a:\;%RAM%\dos
%MNLET%
cd %MNPATH%
if exist %MNLET%%MNPATH%\start.exe goto start_exe
if exist %MNLET%%MNPATH%\menu.bat menu.bat
goto reboot
:start_exe
start.exe %RESTART%
:reboot
if exist a:\reboot.com a:\reboot.com
:out